package com.mty.system.controller;

import com.mty.common.vo.Result;
import com.mty.system.service.AclRoleService;
import com.mty.system.vo.FenRoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：Teacher马（2508531326@qq.com）
 * @date ：Created in 2022/12/6 10:23
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/system/role")
public class AclRoleController {
    @Autowired
    private AclRoleService roleService;
    @GetMapping("findRoleByUserId/{userid}")
    public Result findRoleByUserId(@PathVariable Long userid){
        return roleService.findRoleByUserId(userid);
    }
    @PostMapping("/fenUserRole")
    public Result fenUserRole(@RequestBody FenRoleVo fenRoleVo){
        return roleService.fenUserRole(fenRoleVo);
    }
}
